import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

public class TEST {
	public static void main(String[] args){
		SwingUtilities.invokeLater(new Runnable(){
			public void run(){
				new TEST().createAndShowGUI();
			}
		});
		
	}
		private void createAndShowGUI(){
				
		Window test = new Window();
		test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel testp = new JPanel();   
		TopPanel top = new TopPanel();
		BottomPanel bottom = new BottomPanel();
				
		test.getContentPane().add(testp);
		
		testp.add(top);
		testp.add(bottom);
		
		test.setPreferredSize(new Dimension(800,600));
		test.pack();
		test.setVisible(true);
		testp.setLayout(new GridLayout(2,0));
		testp.setBackground(Color.black);
		}
		

	
}
